﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WIMMP._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="Stylesheet1.css" rel="stylesheet" type="text/css" />
    <title>WIMMP</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Timer ID="Timer1" runat="server" Interval="15000">
    </asp:Timer>
    <div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="CurrentSongIndexLabel" runat="server" Text="# :"></asp:Label>
                    <asp:Label ID="CurrentSongLabel" runat="server" Text="..."></asp:Label>
                </div>
                <div>
                    <asp:Button ID="PrevButton" runat="server" Text="<<" OnClick="PrevButton_Click" />
                    <asp:Button ID="PlayPauseButton" runat="server" Text=">||" OnClick="PlayPauseButton_Click" />
                    <asp:Button ID="NextButton" runat="server" Text=">>" OnClick="NextButton_Click" />
                    <asp:Button ID="RefreshButton" runat="server" Text="Refresh" />
                    <br />
                </div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" 
                    onrowdatabound="GridView1_RowDataBound" 
                    onrowupdated="GridView1_RowUpdated">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:CommandField ShowEditButton="True" ShowSelectButton="True" />
                        <asp:TemplateField HeaderText="#" SortExpression="PlayListIndex">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("PlayListIndex") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("PlayListIndex") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Artist" HeaderText="Artist" SortExpression="Artist" />
                        <asp:BoundField DataField="Title" HeaderText="Song" SortExpression="Title" />
                    </Columns>
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <br />
                <br />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
